# -*- coding: utf-8 -*-

<%def name="button_to_delete(controller_name, id)">
  <form id="delete_obj" name="delete_obj" 
        action="${h.url_for(controller_name, id=id)}" method="post">
    <input type="hidden" name="_method" value="DELETE" />
    <input type="submit" value="DELETE" />
  </form>
</%def>

<%def name="button_to_edit(controller_name, id)">
  <form id="edit_obj" name="edit_obj" 
        action="${h.url_for(controller_name, id=id)}edit/"
        method="get">
    <input type="submit" value="EDIT" />
  </form>
</%def>